<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        var str="床前明月光，疑是地上霜，举头望明月，低头思故乡";
        var strs = new Array();
         strs=str.split("，");
       
    for (i=0; i<strs.length; i++ ){
　   　document.write(strs[i]+"<br/>")
    }

    </script>
    
</body>
</html>